home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / utility / mu17_ext.zip / LOGIN.H < prev    next >
Text File  |  1994-03-07  |  8KB  |  181 lines

  1. static const struct TextAttr  TOPAZ  = {(STRPTR)"topaz.font",TOPAZ_EIGHTY,0,0};
  2.  
  3. static UBYTE UNDOBUFFER[100];
  4.  
  5. static USHORT __chip ImageData1[] = {
  6.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  7.     0x0000,0x0000,0x0000,0x1000,0x0000,0x0000,0x0000,0x0000,
  8.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  9.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  10.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  11.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  12.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  13.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  14.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  15.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  16.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  17.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  18.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  19.     0x0000,0x0000,0x0000,0x3000,0x7FFF,0xFFFF,0xFFFF,0xFFFF,
  20.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF000,
  21.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  22.     0xFFFF,0xFFFF,0xFFFF,0xE000,0xC000,0x0000,0x0000,0x0000,
  23.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  24.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  25.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  26.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  27.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  28.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  29.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  30.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  31.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  32.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  33.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  34.     0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
  35.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
  36. };
  37.  
  38. static struct Image Image1 = {
  39.     -2,-1, /* XY origin relative to container TopLeft */
  40.     180,10,    /* Image width and height in pixels */
  41.     2,    /* number of bitplanes in Image */
  42.     ImageData1,    /* pointer to ImageData */
  43.     0x0003,0x0000,    /* PlanePick and PlaneOnOff */
  44.     NULL    /* next Image structure */
  45. };
  46.  
  47. static USHORT __chip ImageData2[] = {
  48.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,
  49.     0xFFFF,0xFFFF,0xFFFF,0xE000,0xC000,0x0000,0x0000,0x0000,
  50.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  51.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  52.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  53.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  54.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  55.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  56.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  57.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  58.     0x0000,0x0000,0x0000,0x0000,0xC000,0x0000,0x0000,0x0000,
  59.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  60.     0xC000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  61.     0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,0x0000,0x0000,
  62.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  63.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  64.     0x0000,0x0000,0x0000,0x1000,0x0000,0x0000,0x0000,0x0000,
  65.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  66.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  67.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  68.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  69.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  70.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  71.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  72.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  73.     0x0000,0x0000,0x0000,0x3000,0x0000,0x0000,0x0000,0x0000,
  74.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3000,
  75.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  76.     0x0000,0x0000,0x0000,0x3000,0x7FFF,0xFFFF,0xFFFF,0xFFFF,
  77.     0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xF000
  78. };
  79.  
  80. static struct Image Image2 = {
  81.     -2,-1,    /* XY origin relative to container TopLeft */
  82.     180,10,    /* Image width and height in pixels */
  83.     2,    /* number of bitplanes in Image */
  84.     ImageData2,    /* pointer to ImageData */
  85.     0x0003,0x0000,    /* PlanePick and PlaneOnOff */
  86.     NULL    /* next Image structure */
  87. };
  88.  
  89. static struct IntuiText IText1 = {
  90.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  91.     1,0,    /* XY origin relative to container TopLeft */
  92.     &TOPAZ,    /* font pointer or NULL for default */
  93.     NULL,    /* pointer to text */
  94.     NULL    /* next IntuiText structure */
  95. };
  96.  
  97. static struct Gadget Gadget2 = {
  98.     NULL,    /* next gadget */
  99.     12,31,    /* origin XY of hit box relative to window TopLeft */
  100.     180,10,    /* hit box width and height */
  101.     GADGHIMAGE+GADGIMAGE,    /* gadget flags */
  102.     RELVERIFY+TOGGLESELECT,    /* activation flags */
  103.     BOOLGADGET,    /* gadget type flags */
  104.     (APTR)&Image1,    /* gadget border or image to be rendered */
  105.     (APTR)&Image2,    /* alternate imagery for selection */
  106.     &IText1,    /* first IntuiText structure */
  107.     NULL,    /* gadget mutual-exclude long word */
  108.     NULL,    /* SpecialInfo structure */
  109.     NULL,    /* user-definable data */
  110.     NULL    /* pointer to user-definable data */
  111. };
  112.  
  113. static UBYTE Gadget1SIBuff[100];
  114. static struct StringInfo Gadget1SInfo = {
  115.     Gadget1SIBuff,    /* buffer where text will be edited */
  116.     UNDOBUFFER,    /* optional undo buffer */
  117.     0,    /* character position in buffer */
  118.     100,    /* maximum number of characters to allow */
  119.     0,    /* first displayed character buffer position */
  120.     0,0,0,0,0,    /* Intuition initialized and maintained variables */
  121.     0,    /* Rastport of gadget */
  122.     0,    /* initial value for integer gadgets */
  123.     NULL    /* alternate keymap (fill in if you set the flag) */
  124. };
  125.  
  126.  
  127. static struct Gadget Gadget1 = {
  128.     &Gadget2,    /* next gadget */
  129.     12,11,    /* origin XY of hit box relative to window TopLeft */
  130.     180,10,    /* hit box width and height */
  131.     GADGHIMAGE+GADGIMAGE,    /* gadget flags */
  132.     RELVERIFY+TOGGLESELECT+STRINGCENTER+GADGIMMEDIATE,    /* activation flags */
  133.     STRGADGET,    /* gadget type flags */
  134.     (APTR)&Image1,    /* gadget border or image to be rendered */
  135.     (APTR)&Image2,    /* alternate imagery for selection */
  136.     NULL,    /* first IntuiText structure */
  137.     NULL,    /* gadget mutual-exclude long word */
  138.     (APTR)&Gadget1SInfo,    /* SpecialInfo structure */
  139.     NULL,    /* user-definable data */
  140.     NULL    /* pointer to user-definable data */
  141. };
  142.  
  143. #define GadgetList1 Gadget1
  144.  
  145. static struct IntuiText IText3 = {
  146.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  147.     57,21,    /* XY origin relative to container TopLeft */
  148.     &TOPAZ,    /* font pointer or NULL for default */
  149.     "Password",    /* pointer to text */
  150.     NULL    /* next IntuiText structure */
  151. };
  152.  
  153. static struct IntuiText IText2 = {
  154.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  155.     52,2,    /* XY origin relative to container TopLeft */
  156.     &TOPAZ,    /* font pointer or NULL for default */
  157.     "User Name",    /* pointer to text */
  158.     &IText3    /* next IntuiText structure */
  159. };
  160.  
  161. #define IntuiTextList1 IText2
  162.  
  163. static struct NewWindow NewWindowStructure1 = {
  164.     220,113,    /* window XY origin relative to TopLeft of screen */
  165.     200,50,    /* window width and height */
  166.     0,1,    /* detail and block pens */
  167.     IDCMP_MOUSEBUTTONS+IDCMP_GADGETDOWN+IDCMP_GADGETUP+IDCMP_ACTIVEWINDOW+IDCMP_VANILLAKEY+IDCMP_RAWKEY+IDCMP_INACTIVEWINDOW,    /* IDCMP flags */
  168.     ACTIVATE+RMBTRAP+NOCAREREFRESH,    /* other window flags */
  169.     &Gadget1,    /* first gadget in gadget list */
  170.     NULL,    /* custom CHECKMARK imagery */
  171.     NULL,    /* window title */
  172.     NULL,    /* custom screen pointer */
  173.     NULL,    /* custom bitmap */
  174.     5,5,    /* minimum width and height */
  175.     (unsigned short)-1,(unsigned short)-1,    /* maximum width and height */
  176.     WBENCHSCREEN    /* destination screen type */
  177. };
  178.  
  179.  
  180. /* end of PowerWindows source generation */
  181.